package com.blrs.service.file.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.blrs.mapper.FileChangeRecordMapper;
import com.blrs.domain.FileChangeRecord;
import com.blrs.service.file.IFileChangeRecordService;

/**
 * 文件变更记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-06
 */
@Service
public class FileChangeRecordServiceImpl implements IFileChangeRecordService 
{
    @Autowired
    private FileChangeRecordMapper fileChangeRecordMapper;

    /**
     * 查询文件变更记录
     * 
     * @param recordId 文件变更记录主键
     * @return 文件变更记录
     */
    @Override
    public FileChangeRecord selectFileChangeRecordByRecordId(String recordId)
    {
        return fileChangeRecordMapper.selectFileChangeRecordByRecordId(recordId);
    }

    /**
     * 查询文件变更记录列表
     * 
     * @param fileChangeRecord 文件变更记录
     * @return 文件变更记录
     */
    @Override
    public List<FileChangeRecord> selectFileChangeRecordList(FileChangeRecord fileChangeRecord)
    {
        return fileChangeRecordMapper.selectFileChangeRecordList(fileChangeRecord);
    }

    /**
     * 新增文件变更记录
     * 
     * @param fileChangeRecord 文件变更记录
     * @return 结果
     */
    @Override
    public int insertFileChangeRecord(FileChangeRecord fileChangeRecord)
    {
        return fileChangeRecordMapper.insertFileChangeRecord(fileChangeRecord);
    }

    /**
     * 修改文件变更记录
     * 
     * @param fileChangeRecord 文件变更记录
     * @return 结果
     */
    @Override
    public int updateFileChangeRecord(FileChangeRecord fileChangeRecord)
    {
        return fileChangeRecordMapper.updateFileChangeRecord(fileChangeRecord);
    }

    /**
     * 批量删除文件变更记录
     * 
     * @param recordIds 需要删除的文件变更记录主键
     * @return 结果
     */
    @Override
    public int deleteFileChangeRecordByRecordIds(String[] recordIds)
    {
        return fileChangeRecordMapper.deleteFileChangeRecordByRecordIds(recordIds);
    }

    /**
     * 删除文件变更记录信息
     * 
     * @param recordId 文件变更记录主键
     * @return 结果
     */
    @Override
    public int deleteFileChangeRecordByRecordId(String recordId)
    {
        return fileChangeRecordMapper.deleteFileChangeRecordByRecordId(recordId);
    }
}
